import com.lzh.Student;
import com.lzh.controller.StudentController;
import com.lzh.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;

/**
 * @Question App
 * @Date 2022/11/3 13:29
 * @Solution
 */
    @Controller
    public class App {
        public static void main(String[] args) {
            ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring-config.xml");
            StudentController st = applicationContext.getBean("studentController",StudentController.class);
            applicationContext.destroy();
        }
    }
